package com.ra.order;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.espirit.eap.sa.LoginUserService;
import com.ra.order.rental.RentalOrder;
import com.ra.pay.alipay.AlipayUtil;
import com.ra.util.RaConstant;

@Service
public class OrderService {
	
	private static final Log logger = LogFactory.getLog(AlipayUtil.class);

	@Resource
	private LoginUserService loginUserService;
	
	/**
	 * 根据订单类型查询所有已付款，但未转账的订单记录
	 * @param orderType
	 * @return 所有支付订单
	 */
	public List<PayOrder> searchPayOrders(Integer orderType) {
		switch (orderType) {
		case RaConstant.ORDER_TYPE_RENTAL: // 租金订单
			RentalOrder rentalQuery = new RentalOrder();
			rentalQuery.setOrderState(RentalOrder.ORDER_STATE_PAYMENTED);
			List<RentalOrder> rentalOrders = null;
			break;
		case RaConstant.ORDER_TYPE_RESERVE:
			break;
		default:
			break;
		}
		return null;
	}
	
}
